﻿using Dyao.Book.Repository.Shared;
using Foundation.Entity;

namespace Dyao.Book.Repository
{
    /// <summary>
    /// repository base class
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    /// <typeparam name="TKey"></typeparam>
    public class DataRepository<TEntity, TKey> : BizRepository<DataDbContext, TEntity, TKey>
        where TEntity : class, IEntity<TKey>
    {
    }

    /// <summary>
    /// repository base class
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public class DataRepository<TEntity> : BizRepository<DataDbContext, TEntity>
    where TEntity : class, IEntity
    {
    }

    /// <summary>
    /// 视图
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public class DataViewRepository<TEntity> : BizViewRepository<DataDbContext, TEntity>
    where TEntity : class, IEntity
    {
    }
}
